PowerTCP SSH and SFTP for .NET
SshLoginData Constructor(String,Int32,String,String,String,String,String[])




Host (server) name or address in string form.
Host port to use. 22 is the port used by most SSH servers.
Username for authentication.
Password for authentication.
PEM-encoded DSA/RSA private key in OpenSSH, SSH2, or SSH.com key format. Can be null or empty.
Passphrase for the private key. Can be null or empty.
An array of preferred authentication submethods to suggest to the server. May be 0-length or null.
Used to initialize class members.
Syntax
'Declaration
 
Public Function New( _
   ByVal hostNameOrAddress As String, _
   ByVal port As Integer, _
   ByVal username As String, _
   ByVal password As String, _
   ByVal pem As String, _
   ByVal passphrase As String, _
   ByVal submethods() As String _
)
'Usage
 
Dim hostNameOrAddress As String
Dim port As Integer
Dim username As String
Dim password As String
Dim pem As String
Dim passphrase As String
Dim submethods() As String
 
Dim instance As New SshLoginData(hostNameOrAddress, port, username, password, pem, passphrase, submethods)
public SshLoginData( 
   string hostNameOrAddress,
   int port,
   string username,
   string password,
   string pem,
   string passphrase,
   string[] submethods
)
public: SshLoginData( 
   string* hostNameOrAddress,
   int port,
   string* username,
   string* password,
   string* pem,
   string* passphrase,
   string*[]* submethods
)
public:
SshLoginData( 
   String^ hostNameOrAddress,
   int port,
   String^ username,
   String^ password,
   String^ pem,
   String^ passphrase,
   array<String^>^ submethods
)

Parameters

hostNameOrAddress
Host (server) name or address in string form.
port
Host port to use. 22 is the port used by most SSH servers.
username
Username for authentication.
password
Password for authentication.
pem
PEM-encoded DSA/RSA private key in OpenSSH, SSH2, or SSH.com key format. Can be null or empty.
passphrase
Passphrase for the private key. Can be null or empty.
submethods
An array of preferred authentication submethods to suggest to the server. May be 0-length or null.
See Also

Reference

SshLoginData Class
SshLoginData Members
Overload List


PowerTCP SSH and SFTP for .NET Documentation Version 8.0
© 2025 Dart Communications. All Rights Reserved.
Send comments on this topic